//package com.peng.my_blog.chat.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration;
//import org.springframework.session.web.http.DefaultCookieSerializer;
//
//@Configuration
//public class RedisSessionConfig {
//    @Bean
//    public RedisHttpSessionConfiguration redisHttpSessionConfiguration(){
//        RedisHttpSessionConfiguration redisHttpSessionConfiguration = new RedisHttpSessionConfiguration();
//        redisHttpSessionConfiguration.setMaxInactiveIntervalInSeconds(100);
//        return redisHttpSessionConfiguration;
//    }
//    @Bean
//   public DefaultCookieSerializer defaultCookieSerializer(){
//        DefaultCookieSerializer defaultCookieSerializer = new DefaultCookieSerializer();
//        defaultCookieSerializer.setCookieName("myCookie");
//        return defaultCookieSerializer;
//
//    }
//}
